<?php
namespace Rainrock\Framework\kernel\base;

/**
*	curl的
*/
final class Curl{
	
	private static function strurl($url)
	{
		$url = str_replace('&#47;', '/', $url);
		$url = str_replace(' ', '', $url);
		$url = str_replace("\n", '', $url);
		return $url;
	}
	
	public static function getfilecont($url)
	{
		$url 	 = self::strurl($url);
		@$result = file_get_contents($url);
		return $result;
	}
}